/*
    jqGridPager 所有具有表格的页面  通用部分
 */
var the_url = "http://139.196.28.69:3000/";
var select_url = "http://139.196.28.69:3000/select/";
var edit_url = "http://139.196.28.69:3000/update/";

/****查询******/

    //查询
    var timeoutHnd;
    var flAuto = false;

    function doSearch(ev){
        if(!flAuto)
            return;
    //  var elem = ev.target||ev.srcElement;
        if(timeoutHnd)
            clearTimeout(timeoutHnd)
        timeoutHnd = setTimeout(gridReload,500)
    }

    function gridReload(aim){
        $("#jqGrid").jqGrid('setGridParam',{url: select_url + aim,page:1}).trigger("reloadGrid");
    }
    function enableAutosubmit(state){
        flAuto = state;
        $("#submitButton").attr("disabled",state);
    }
